<div class="p-head">
    <b class="c3">站内消息</b>
    <div class="r">
        <a href="/bbs/index/3/" class="ajax" title="意见反馈">意见反馈</a>
    </div>
    <div id="desc">
        记录每天生活的点点滴滴。。。
    </div>
</div>
<div class="tabs_t tabs_n">
    <ul class="ajax" id="tabs_l">
        <li class="current"><a href="/note/index/">站内消息</a></li>                        
    </ul>
    <span class="r clear">
        <a href="/note/add/" title="发送消息" class="btn btn_s dialog" callback="note_callback" close="true"><span><b class="icon icon-edit"></b><em>发送消息</em></span></a>
    </span>
</div>
<div id="note">
    <table class="data list notelist" cellpadding="0" cellspacing="1" width="100%" style="margin-bottom:0;">
        <?php foreach ($list as $k => $v) { ?>
            <tr>
                <td width="50" class="" valign="top">
                    <img src="<?= get_user_face($v['from_id'], $v['face']) ?>" alt="" />
                </td>
                <td class="datatitle">
                    <a href="javascript:;" class="notetitle"><?= $v['from_id'] ? $v['nickname'] : '系统' ?></a><br />
                    <div class="notecontent"><?= $v['content'] ?></div>
                    <div class="notetime">
                        <?= format_time($v['createtime']) ?> 
                    </div>
                    <div class="editarea">
                        <a href="/note/del/<?= $v['id'] ?>/" callback="note_delete" class="del" title="删除消息">删除</a>
                    </div>
                </td>
            </tr>
        <?php } ?>
        <tr>
            <td colspan="3" style="padding:0;">
                <div class="pager graybg ajax">
                    <?= $pagelist ?> 
                </div>
            </td>
        </tr>
    </table>
</div>
<script type="text/javascript">
    KS.common.load('note.index');
</script>